package org.im.service.message.bean;

public abstract class BaseMessage {

    // 发送者标识
    protected String senderId;
    // 发送者类型
    protected int senderType;
    // 接收者标识
    protected String recipientId;
    // 聊天类型
    protected int chatType;

    // 消息类型：文本，模板
    protected int messageType;
    // 行为类型：发送信息；上线；下线
    protected int actionType;

    public BaseMessage() {
    }

    public BaseMessage(String senderId, String recipientId) {
        this.senderId = senderId;
        this.recipientId = recipientId;
        this.chatType = ChatType.PRIVATE_CHAT.getType();
        this.messageType = MessageType.NORMAL_TXT.getType();
    }

    public String getSenderId() {
        return senderId;
    }

    public void setSenderId(String senderId) {
        this.senderId = senderId;
    }

    public int getSenderType() {
        return senderType;
    }

    public void setSenderType(int senderType) {
        this.senderType = senderType;
    }

    public String getRecipientId() {
        return recipientId;
    }

    public void setRecipientId(String recipientId) {
        this.recipientId = recipientId;
    }

    public int getChatType() {
        return chatType;
    }

    public void setChatType(int chatType) {
        this.chatType = chatType;
    }

    public int getMessageType() {
        return messageType;
    }

    public void setMessageType(int messageType) {
        this.messageType = messageType;
    }

    public int getActionType() {
        return actionType;
    }

    public void setActionType(int actionType) {
        this.actionType = actionType;
    }

}
